| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkMemory::DefaultMemorySpaceAllocator< T > Class Template Reference

A default memory space allocator, offering the most basic memory allocation method. More...

Inheritance diagram for nkMemory::DefaultMemorySpaceAllocator< T >:

## Public Member Functions
virtual UniquePtr< T > | allocate (unsigned long long size) override
Public Member Functions inherited from nkMemory::MemorySpaceAllocator< T >
virtual | ~MemorySpaceAllocator ()=default

## Detailed Description

### template<typename T>
class nkMemory::DefaultMemorySpaceAllocator< T >

A default memory space allocator, offering the most basic memory allocation method.

## Member Function Documentation

## ◆ allocate()

template<typename T >

virtual UniquePtr<T> nkMemory::DefaultMemorySpaceAllocator< T >::allocate | ( | unsigned long long | size | ) |
| override virtual

Allocates a memory space of given type through a makeUnique call.

Parameters

  size | The size of the needed memory space, in number of elements.

Implements nkMemory::MemorySpaceAllocator< T >.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsMemory/Pagers/MemorySpaces/DefaultMemorySpaceAllocator.h